package com.syuchen.register.redisRegister;

import com.syuchen.common.URL;

import java.io.Serializable;

/**
 * 发布订阅的服务地址变动信息
 */
public class UrlChangeMsg implements Serializable {

    public final static int DELETE_TYPE = 0;
    public final static int ADD_TYPE = 1;

    public int type;
    public String interfaceName;
    public URL url;

    public UrlChangeMsg(int type, String interfaceName, URL url) {
        this.type = type;
        this.interfaceName = interfaceName;
        this.url = url;
    }
}
